<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimal-ui">
    <meta name="author" content="">
    <title></title>  <link rel="icon" href="/template/pc1/images/wmh_favicon.ico" type="image/x-icon" />

    <% include("/_view/common/include.html"){}%>
    <link href="/res/css/common.css" rel="stylesheet" type="text/css"/>
    <link href="/res/css/input.css" rel="stylesheet" type="text/css"/>
    <link rel="stylesheet" href="https://static.9hive.cn/mmenu/assets/css/site.min.css?v2.2.0"><!--common-->
    <link rel="stylesheet" href="https://static.9hive.cn/global/vendor/nprogress/nprogress.min.css"><!--common-->
    <link rel="stylesheet" href="https://static.9hive.cn/global/iconhive/hiveicon.css"><!--图标文字-->
    <link rel="stylesheet" href="https://static.9hive.cn/global/vendor/inside/inside.css?v=1"><!--common-->
    <link rel="stylesheet" href="https://static.9hive.cn/global/vendor/swiper-tab/colorfulTab.css?v=1.0.2"><!--选项卡-->
    <link rel="stylesheet" href="https://static.9hive.cn/global/vendor/common/common_20170925.css"><!--common-->

    <!--图片编辑器-->
    <link href="/res/plugins/img-viewing/viewer.css" rel="stylesheet">
    <!--图片编辑器-->

    <style type="text/css">
        .specificationSelect {
            height: 100px;
            padding: 5px;
            overflow-y: scroll;
            border: 1px solid #cccccc;
        }

        .specificationSelect li {
            float: left;
            min-width: 150px;
            _width: 200px;
        }

        td > input {
            height:32px;
            padding: 1px 8px!important
        }
        body{
            height: auto!important;
        }
        .productImageArea .productImageBox .productImagePreview{
            z-index: inherit;
        }
    </style>
    <%
    var isAdd = false;
    var isEdit = false;
    if(isEmpty(product.id)){
    isAdd = true;
    }else{
    isEdit = true;
    }%>
</head>
<body>
<div class="ibox">
    <div class="ibox-title">
        <div class="pull-left mbx navbar_title">
            <span class="current">商城管理</span>
            <span class="line">/</span>
            <span class="current"><a href="list">商品列表</a></span><span class="line">/</span>
            编辑商品
        </div>
    </div>
    <div class="ibox-content">
        <div class="wrapper wrapper-content">
            <div class="row">
                <div class="padding-10">
                    <form class="form-horizontal form-validate" method="post" id="form" action="<%if (isAdd){%>save<%}else{%>update<%}%>" enctype="multipart/form-data">
                        <input type="hidden" name="product.id" value="${product.id!}"/>
                        <input type="hidden" name="product.htmlFilePath" value="${product.htmlFilePath!}"/>
                        <input type="hidden" name="product.freezeStore" value="${product.freezeStore!0}"/>
                        <input type="hidden" name="product.specificationtype" value="${product.specificationtype!''}"/>
                        <ul class="tab">
                            <li>
                                <input type="button" value="基本信息" hidefocus="true"/>
                            </li>
                            <li>
                                <input type="button" value="商品描述" hidefocus="true"/>
                            </li>
                            <li>
                                <input type="button" value="商品规格" hidefocus="true"/>
                            </li>
                        </ul>
                        <table class="input tabContent">

                            <tr>
                                <th>
                                    <span class="maroon">*</span>商品名称:
                                </th>
                                <td>
                                    <input disabled="disabled" type="text" name="product.name" class="formText" value="${product.name!}" required/>
                                </td>
                            </tr>
                            <tr>
                                <th>
                                    商品型号:
                                </th>
                                <td>
                                    <input disabled="disabled" type="text" class="formText" name="product.productSn" value="${product.productSn!}" title="若留空则由系统随机生成"/>
                                </td>
                            </tr>
                            <tr>
                                <th>
                                    <span class="maroon">*</span>商品分类:
                                </th>
                                <td>
                                    <select disabled="disabled" name="product.productCategory_id" class="" required>
                                        <option value="">请选择...</option>
                                        <%for(list in productCategoryTreeList!){%>
                                        <option value="${list.id}"
                                        <%if (list.id == product.productCategory_id!){%> selected<%}%>>
                                        <%if (list.level != 0){%>
                                        <%for( i in range(0,list.level)){%>------<%}%>
                                        <%}%>
                                        ${list.name}
                                        </option>
                                        <%}%>
                                    </select>
                                </td>
                            </tr>
                            <tr>
                                <th>
                                    <span class="maroon">*</span>商品品牌:
                                </th>
                                <td>
                                    <select disabled="disabled" name="product.brand_id" class="" required>
                                        <option value="">请选择...</option>
                                        <%for(list in allBrand){%>
                                        <option value="${list.id}"
                                        <%if (list.id == product.brand_id!){%> selected <%}%>>
                                        ${list.name}
                                        </option>
                                        <%}%>
                                    </select>
                                </td>
                            </tr>
                            <tr>
                                <th>
                                    <label class="requireField">*</label>本店售价:
                                </th>
                                <td>
                                    <input disabled="disabled" type="number" name="product.price" class="formText" value="${product.price!0}" required/>
                                </td>
                            </tr>
                            <tr>
                                <th>
                                    <label class="requireField">*</label>市场售价:
                                </th>
                                <td>
                                    <input disabled="disabled" type="number" name="product.marketPrice" class="formText" value="${product.marketPrice!0}" required/>
                                </td>
                            </tr>
                            <tr>
                                <th>
                                    <label class="requireField">*</label>商品重量:
                                </th>
                                <td>
                                    <input disabled="disabled" type="text" name="product.weight" class="formText" value="${product.weight!0}" title="0表示不计重量" required min="0"/>
                                    <select disabled="disabled" name="weightUnit">
                                        <%for(list in allWeightUnit){%>
                                            <option value="${list}" <%if (list == product.weightUnitValue!){%> selected <%}%>>
                                                ${i18n("WeightUnit."+list)}
                                            </option>
                                        <%}%>
                                    </select>
                                    <span id="weightMessagePosition"></span>
                                </td>
                            </tr>
                            <tr>
                                <th>
                                    <label class="requireField">*</label>库存量:
                                </th>
                                <td>
                                    <input disabled="disabled" type="text" name="product.store" class="formText" value="<%if(isEdit && (product.store!0 - product.freezeStore!0)>0){%>${product.store!0 - product.freezeStore!0}<%}else{%>0<%}%>" title="只允许输入零或正整数，为空表示不计库存" required min="0"/>
                                </td>
                            </tr>
                            <tr>
                                <th>
                                    <label class="requireField">*</label>购买基数:
                                </th>
                                <td>
                                    <input disabled="disabled" type="text" name="product.basebuy" class="formText" value="${product.basebuy!0}" title="只允许输入零或正整数" required min="0"/>
                                </td>
                            </tr>
                            <tr>
                                <th>
                                    <label class="requireField">*</label>页面排序号:
                                </th>
                                <td>
                                    <input disabled="disabled" type="text" name="product.sortNo" value="${product.sortNo!'50'}" required/>
                                </td>
                            </tr>
                            <!--<tr>
                                <th>
                                    是否精品推荐:
                                </th>
                                <td>
                                    <label><input disabled="disabled" type="radio" name="product.isBest" value="true"<%if (product.isBest!
                                        == true){%> checked<%}%> />是</label>
                                    <label><input disabled="disabled" type="radio" name="product.isBest" value="false"<%if (isAdd ||
                                        product.isBest == false){%> checked<%}%> />否</label>
                                </td>
                            </tr>
                            <tr>
                                <th>
                                    是否新品推荐:
                                </th>
                                <td>
                                    <label><input disabled="disabled"  type="radio" name="product.isNew" value="true"<%if (product.isNew! ==
                                        true){%> checked<%}%> />是</label>
                                    <label><input type="radio" name="product.isNew" value="false"<%if (isAdd ||
                                        product.isNew == false){%> checked<%}%> />否</label>
                                </td>
                            </tr>
                            <tr>
                                <th>
                                    是否热销推荐:
                                </th>
                                <td>
                                    <label><input disabled="disabled" type="radio" name="product.isHot" value="true"<%if (product.isHot! ==
                                        true){%> checked<%}%> />是</label>
                                    <label><input disabled="disabled" type="radio" name="product.isHot" value="false"<%if (isAdd ||
                                        product.isHot == false){%> checked<%}%> />否</label>
                                </td>
                            </tr>-->
                            <!--<tr>
                                <th>
                                    是否特惠商品:
                                </th>
                                <td>
                                    <label><input disabled="disabled" type="radio" name="product.isCheap" value="true"<%if (product.isCheap!
                                        == true){%> checked<%}%> />是</label>
                                    <label><input disabled="disabled" type="radio" name="product.isCheap" value="false"<%if (isAdd ||
                                        product.isCheap == false){%> checked<%}%> />否</label>
                                </td>
                            </tr>-->
                            <tr>
                                <th>
                                    是否上架:
                                </th>
                                <td>
                                    <label><input disabled="disabled" type="radio" name="product.isMarketable" value="true"<%if (isAdd ||
                                        product.isMarketable! == true){%> checked<%}%> />是</label>
                                    <label><input disabled="disabled" type="radio" name="product.isMarketable" value="false"<%if
                                        (product.isMarketable! == false){%> checked<%}%> />否</label>
                                </td>
                            </tr>
                            <tr>
                                <th>
                                    背景图:
                                </th>
                                <td>
                                    <img class="img-rounded docs-pictures clearfix" data-original="${product.backGroundImg!}" src="${product.backGroundImg!}" style="max-height:50px;"/>
                                    <span class="help-block"><span class="maroon"></span>建议400*600,小于500k,像素格式jpg</span>
                                </td>
                            </tr>
                            <tr>
                                <th>
                                    上传商品图片
                                </th>
                                <td>
                                    <div class="productImageArea">
                                        <div class="example" style="margin-top: 0px"></div>
                                        <a class="prev browse" href="javascript:void(0);" hidefocus="true"></a>
                                        <div class="scrollable">
                                            <ul class="items">
                                                <%for(list in product.productImageList!){%>
                                                <li>
                                                    <div class="productImageBox">
                                                        <div class="productImagePreview png">
                                                            <img class="img-rounded docs-pictures clearfix" src="${list.thumbnailProductImagePath}"data-original="${list.sourceProductImagePath!}" alt=""/>
                                                        </div>
                                                        <div class="productImageOperate">
                                                            <a class="left" href="javascript: void(0);" alt="左移" hidefocus="true"></a>
                                                            <a class="right" href="javascript: void(0);" title="右移" hidefocus="true"></a>
                                                            <a class="delete" href="javascript: void(0);" title="删除" hidefocus="true"></a>
                                                        </div>
                                                        <a class="productImageUploadButton"  href="javascript: void(0);">
                                                            <input type="hidden" name="productImageIds" value="${list.id}"/>
                                                            <input type="hidden" name="productImageParameterTypes" value="productImageId"/>
                                                            <%if (systemConfig.allowedUploadImageExtension != ""){%>
                                                            <input disabled type="file" name="productImages" hidefocus="true"/>
                                                            <div>上传新图片</div>
                                                            <%}else{%>
                                                            <div>不允许上传</div>
                                                            <%}%>
                                                        </a>
                                                    </div>
                                                </li>
                                                <%}%>

                                            </ul>
                                        </div>
                                        <a class="next browse" href="javascript:void(0);" hidefocus="true"></a>
                                        <div class="blank"></div>
                                        <%if (systemConfig.allowedUploadImageExtension != ""){%>
                                        <span class="warnInfo"><span class="icon">&nbsp;</span>
                                            单张图片大小不能超过500kb,最多上传5张
                                            <%for(list in strutil.split(systemConfig.allowedUploadImageExtension,@cn.szzsi.common.bean.SystemConfig.EXTENSION_SEPARATOR)){%>
                                                <%if (listLP.last){%>
                                                    *.${list};
                                                <%}else{%>
                                                    *.${list}
                                                <%}%>
                                            <%}%>
                                        </span>
                                        <%}else{%>
                                        <span class="warnInfo"><span class="icon">&nbsp;</span>系统设置不允许上传图片文件!</span>
                                        <%}%>
                                    </div>
                                </td>
                            </tr>
                        </table>
                        <table class="input tabContent">
                            <tr>
                                <th>
                                    描述:
                                </th>
                                <td colspan="2">
                                    <textarea readonly disabled="disabled" id="personInfo" name="product.description" rows="10" style="width: 100%">${product.description!}</textarea>
                                    <!--<textarea name="product.description" class="wysiwyg" style="width: 100%; height: 450px;">${product.description!}</textarea>-->
                                </td>
                            </tr>
                        </table>
                        <table class="input tabContent">
                            <!--<tr>
                                <td>
                                    是否分sku显示:
                                    <select name="product.isShowSku">
                                    <option value="false"  <%if (product.isShowSku! == false){%> selected<%}%>>否</option>
                                    <option value="true"  <%if (product.isShowSku! == true){%> selected<%}%>>是</option>
                                    </select>
                                </td>
                            </tr>-->
                            <tr class="title">
                                <th>
                                    请选择商品规格:
                                </th>
                            </tr>
                            <tr>
                                <td>
                                    <div id="specificationSelect" class="specificationSelect">
                                        <ul>
                                            <%for(s in allSpecification){ %>
                                            <li>
                                                <label>
                                                    <input disabled="disabled" type="checkbox" name="specificationIds" value="${s.id}"
                                                    <%if(!isEmpty(product.specificationids) && strutil.contain(product.specificationids,s.id)){%>
                                                    checked="checked"<%}%> />${s.name}
                                                    <span class="gray">[${s.memo}]</span>
                                                </label>
                                            </li>
                                            <%}%>
                                        </ul>
                                    </div>
                                </td>
                            </tr>

                            <tr>
                                <td>
                                    <table id="specificationProductTable" class="input">
                                        <tr class="title">
                                            <td width="60">
                                                &nbsp;
                                            </td>
                                            <%for(s in allSpecification!){ %>
                                            <td class="specification_${s.id} <%if(isEmpty(product.specificationids) || !strutil.contain(product.specificationids!,s.id!)){%>hidden<%}%>">
                                                ${s.name}
                                                <span class="gray">[${s.memo}]</span>
                                            </td>
                                            <%}%>
                                            <td>
                                                价格
                                            </td>
                                            <td>
                                                库存
                                            </td>
                                            <td>
                                                操作
                                            </td>
                                        </tr>
                                        <tr class="hidden">
                                            <td>
                                                &nbsp;
                                            </td>
                                            <%for(s in allSpecification){ %>
                                            <td class="specification_${s.id} <%if(isEmpty(product.specificationids) || !strutil.contain(product.specificationids!,s.id!)){%>hidden<%}%>">
                                                <select name="specification_${s.id}" <%if(isEmpty(product.specificationids) || !strutil.contain(product.specificationids!,s.id!)){%>disabled="disabled"<%}%>>
                                                <%for(ss in s.specificationValues){ %>
                                                <option value="${ss.id}">${ss.name}</option>
                                                <%}%>
                                                </select>
                                            </td>
                                            <%}%>
                                            <td>
                                                <input type="text" class="formText" name="specificationPrice" value="${product.price}" style="width: 41px;height: 19px" required/>
                                            </td>
                                            <td>
                                                <input type="text" class="formText" name="specificationStore" value="${product.store}" style="width: 41px;height: 19px"/>
                                            </td>
                                            <td>
                                                <a disabled href="javascript:;" class="deleteSpecificationProduct">[删除]</a>
                                            </td>
                                        </tr>
                                        <%for(type in specificationTypes!){%>
                                            <tr>
                                                <td>
                                                    <%if(strutil.contain(type,product.id)){%>
                                                    当前规格
                                                    <%}%>
                                                    <input disabled="disabled" type="hidden" name="specificationProductIds" value="${strutil.subStringTo(type,0,strutil.index(type,'@'))}" />
                                                </td>
                                                <%for(s in allSpecification){ %>
                                                <td class="specification_${s.id} <%if(!strutil.contain(type,s.id)){%>hidden<%}%>">
                                                    <select disabled="disabled" name="specification_${s.id}" <%if(!strutil.contain(type,s.id)){%>disabled="disabled"<%}%>>
                                                    <%for(ss in s.specificationValues){ %>
                                                    <option value="${ss.id}" <%if(strutil.contain(type,ss.id)){%>selected="selected"<%}%>>${ss.name}</option>
                                                    <%}%>
                                                    </select>
                                                </td>
                                                <%}%>
                                                <td>
                                                    <input disabled="disabled" type="text" class="formText" name="specificationPrice" value="${strutil.subStringTo(type,strutil.index(type,'$')+1,strutil.index(type,'#'))}" style="width: 41px;height: 19px" required/>
                                                </td>
                                                <td>
                                                    <input disabled="disabled" type="text" class="formText" name="specificationStore" value="${strutil.subString(type,strutil.index(type,'#')+1)}" style="width: 41px;height: 19px"/>
                                                </td>
                                                <td>
                                                    <%if(strutil.contain(type,product.id)){%>
                                                    -
                                                    <%}else{%>
                                                    <a href="javascript:;" class="deleteSpecificationProduct" productid="${strutil.subStringTo(type,0,strutil.index(type,'@'))}">[删除]</a>
                                                    <%}%>
                                                </td>
                                            </tr>
                                        <%}%>
                                    </table>
                                </td>
                            </tr>
                        </table>
                        <div style="margin-left: 165px;margin-top: 5px;margin-bottom: 40px">
                            <span class="maroon">*</span>是否是特惠:
                            <select  name="product.isCheapPlateform" class="isCheapPlateform" required>
                                <option value="true" <%if (product.isCheapPlateform! == true){%> selected<%}%>>是</option>
                                <option value="false" <%if (product.isCheapPlateform! == false || isEmpty(product.isCheapPlateform)){%> selected<%}%>>否</option>
                            </select>
                            <label style="margin-left: 10px">选择是,将会在平台首页展示</label>
                        </div>
                        <div style="margin-left: 165px;margin-top: 5px;margin-bottom: 40px">
                            <span class="maroon">*</span>是否是精品:
                            <select  name="product.isBestPlateform" class="isBestPlateform" required>
                                <option value="true" <%if (product.isBestPlateform! == true){%> selected<%}%>>是</option>
                                <option value="false" <%if(product.isBestPlateform! == false || isEmpty(product.isBestPlateform)){%> selected<%}%>>否</option>
                            </select>
                            <label style="margin-left: 10px">选择是,将会在平台首页展示</label>
                        </div>
                        <div style="margin-left: 165px;margin-top: 3px;margin-bottom: 40px">
                            <span class="maroon">*</span>是否是新品:
                            <select  name="product.isNewPlateform" class="isNewPlateform" required>
                                <option value="true" <%if (product.isNewPlateform! == true){%> selected<%}%>>是</option>
                                <option value="false" <%if(product.isNewPlateform! == false || isEmpty(product.isNewPlateform)){%> selected<%}%>>否</option>
                            </select>
                            <label style="margin-left: 10px">选择是,将会在平台首页展示</label>
                        </div>
                        <div style="margin-left: 165px;margin-top: 3px;margin-bottom: 40px">
                            <span class="maroon">*</span>是否是热销:
                            <select  name="product.isHotPlateform" class="isHotPlateform" required>
                                <option value="true" <%if (product.isHotPlateform! == true){%> selected<%}%>>是</option>
                                <option value="false" <%if(product.isHotPlateform! == false || isEmpty(product.isHotPlateform)){%> selected<%}%>>否</option>
                            </select>
                            <label style="margin-left: 10px">选择是,将会在平台首页展示</label>
                        </div>
                        <div style="margin-left: 165px;margin-top: 3px;margin-bottom: 40px">
                            <span class="maroon">*</span>是否今日推荐:
                            <select  name="product.isTodayRecommend" class="isTodayRecommend" required>
                                <option value="true" <%if (product.isTodayRecommend! == true){%> selected<%}%>>是</option>
                                <option value="false" <%if(product.isTodayRecommend! == false || isEmpty(product.isTodayRecommend)){%> selected<%}%>>否</option>
                            </select>
                            <label style="margin-left: 10px">选择是,将会在平台首页展示</label>
                        </div>
                        <div style="margin-left: 165px;margin-top: 3px;margin-bottom: 40px">
                            <span class="maroon"></span>商家联系方式:<span style="font-size: 18px">${companyInfo.phone!}</span>
                        </div>

                        <div class="buttonArea" style="margin-left: 165px;margin-top: 3px;margin-bottom: 40px">
                            <%if(isEdit){%>
                            <input type="hidden" id="productId" name="productId" value="${product.id}"/>
                            <%}%>
                            <input type="button" id="checkedPass" class="button" value="审核通过" hidefocus="true"/>&nbsp;&nbsp;&nbsp;&nbsp;
                            <input type="button"  id="checkedNotass" class="button"  value="审核驳回" hidefocus="true"/>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<script src="https://static.9hive.cn/global/vendor/nprogress/nprogress.js"></script>
<script src="https://static.9hive.cn/global/vendor/bootstrap-3.3.7/bootstrap.min.js"></script>
<script src="https://static.9hive.cn/global/vendor/jquery-validate/localization/messages_zh.min.js"></script>
<script src="https://static.9hive.cn/global/vendor/jquery-ajaxform/ajax-form.js"></script>

<!--kindEditor-->
<script src="https://static.9hive.cn/global/vendor/kindeditor/kindeditor-all-min.js"></script>
<script src="https://static.9hive.cn/global/vendor/kindeditor/lang/zh-CN.js"></script>
<script type="text/javascript">
    KindEditor.ready(function (K) {
        personInfoeditor = K.create("#personInfo", {
            themeType: 'simple',
            allowFileManager: true,
            width: "80%",
            height: "260px",
            uploadJson: '/file/uploadfile?shopId=${shopId!}&type=k',
            fileManagerJson: '/file/fileManagerJson?shopId=${shopId!}'
        });
    });
</script>
<!-- 自定义js -->
<script src="https://static.9hive.cn/global/vendor/file/uploadify/jquery_uploadify.js"></script><!--上传-->
<script src="https://static.9hive.cn/global/vendor/icheck/icheck.min.js"></script><!--common-->

<script src="https://static.9hive.cn/global/vendor/jquery-validate/jquery.validate.min.js"></script><!--common-->
<script src="https://static.9hive.cn/global/vendor/jquery-validate/additional-methods.min.js"></script><!--common-->
<script src="https://static.9hive.cn/global/vendor/jquery-validate/localization/messages_zh.min.js"></script><!--common-->
<script src="https://static.9hive.cn/global/vendor/inside/inside20170925.js"></script><!--common-->
<script src="https://static.9hive.cn/global/vendor/layer/layer.js"></script>
<script src="https://static.9hive.cn/global/vendor/jquery-ajaxform/ajax-form.js"></script><!--common-->
<script src="/res/plugins/img-viewing/main.js"></script>
<script src="/res/plugins/img-viewing/viewer.js"></script>
<script type="text/javascript">



</script>
<script type="text/javascript">
    $().ready(function () {
        $("#checkedPass").click(function () {
            var productId=$("#productId").val();
            var isCheapPlateform=$(".isCheapPlateform").val();
            var isBestPlateform=$(".isBestPlateform").val();
            var isNewPlateform=$(".isNewPlateform").val();
            var isHotPlateform=$(".isHotPlateform").val();
            var isTodayRecommend=$(".isTodayRecommend").val();
            parent.layer.confirm('您确定要做此操作吗？', {
                shade: [0.3,'#fff'],//0.1透明度的白色背景
                btn: ['是','否'] //按钮
            }, function(){
                $.post('checked',{"productId":productId,"type":1,"isCheapPlateform":isCheapPlateform,"isBestPlateform":isBestPlateform,"isNewPlateform":isNewPlateform,"isHotPlateform":isHotPlateform,"isTodayRecommend":isTodayRecommend},function (e) {
                    if(e.state == 'fail'){
                        parent.layer.msg(e.info);
                    }else{
                        parent.layer.msg("操作成功!");
                        window.location.href="list";
                    }
                })
            });
        });
        //
        $("#checkedNotass").click(function () {
            var productId=$("#productId").val();
            parent.layer.confirm('您确定要做此操作吗？', {
                shade: [0.3,'#fff'],//0.1透明度的白色背景
                btn: ['是','否'] //按钮
            }, function(){
                $.post('checked',{"productId":productId,"type":2},function (e) {
                    if(e.state == 'fail'){
                        parent.layer.msg(e.info);
                    }else{
                        parent.layer.msg("操作成功!");
                        window.location.href="list";

                    }
                })
            });
        });

    })
</script>

<script type="text/javascript">
    $(function () {
        $('.i-checks').iCheck({
            checkboxClass: 'icheckbox_flat-blue',
            radioClass: 'iradio_flat-blue',
        });

    })
</script>
</body>
</html>